package com.hpjpw.ido.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hpjpw.ido.mapper.CheerCommentMapper;
import com.hpjpw.ido.domain.CheerComment;
import com.hpjpw.ido.service.ICheerCommentService;

/**
 * 加油站的评论Service业务层处理
 * 
 * @author hpj
 * @date 2021-01-02
 */
@Service
public class CheerCommentServiceImpl implements ICheerCommentService 
{
    @Autowired
    private CheerCommentMapper cheerCommentMapper;

    /**
     * 查询加油站的评论
     * 
     * @param id 加油站的评论ID
     * @return 加油站的评论
     */
    @Override
    public CheerComment selectCheerCommentById(Long id)
    {
        return cheerCommentMapper.selectCheerCommentById(id);
    }

    /**
     * 查询加油站的评论列表
     * 
     * @param cheerComment 加油站的评论
     * @return 加油站的评论
     */
    @Override
    public List<CheerComment> selectCheerCommentList(CheerComment cheerComment)
    {
        return cheerCommentMapper.selectCheerCommentList(cheerComment);
    }

    /**
     * 新增加油站的评论
     * 
     * @param cheerComment 加油站的评论
     * @return 结果
     */
    @Override
    public int insertCheerComment(CheerComment cheerComment)
    {
        return cheerCommentMapper.insertCheerComment(cheerComment);
    }

    /**
     * 修改加油站的评论
     * 
     * @param cheerComment 加油站的评论
     * @return 结果
     */
    @Override
    public int updateCheerComment(CheerComment cheerComment)
    {
        return cheerCommentMapper.updateCheerComment(cheerComment);
    }

    /**
     * 批量删除加油站的评论
     * 
     * @param ids 需要删除的加油站的评论ID
     * @return 结果
     */
    @Override
    public int deleteCheerCommentByIds(Long[] ids)
    {
        return cheerCommentMapper.deleteCheerCommentByIds(ids);
    }

    /**
     * 删除加油站的评论信息
     * 
     * @param id 加油站的评论ID
     * @return 结果
     */
    @Override
    public int deleteCheerCommentById(Long id)
    {
        return cheerCommentMapper.deleteCheerCommentById(id);
    }
}
